package cn.exrick.xboot.enterpriseUser.controllerImp

import cn.exrick.xboot.base.entity.Business
import cn.exrick.xboot.base.service.IBusinessService
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import cn.exrick.xboot.enterpriseUser.controller.IEnterpriseUserController
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RestController

@RestController
open class BusinessController : IEnterpriseUserController.IBusiness{


    @Autowired
    private lateinit var iBusinessService: IBusinessService

    override fun createOrUpdateBusiness(business: Business): Result<Any?>? {

        return iBusinessService.createOrUpdateBusiness(business)
    }

    override fun removeBusiness(ids: Array<out String>): Result<Any?>? {

        return iBusinessService.removeBusiness(ids)
    }

    override fun getBusinessList(pageVo: PageVo): Result<MutableMap<String, Any?>>? {

        return iBusinessService.getBusinessList(pageVo)
    }
}